home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1995 Fall / PD-ROM F95.toast / Telecom / Net Utilities / SimpleWave 1.0A ƒ / SimpleWave Manual / SimpleWave Manual.rsrc / TEXT_142.txt < prev    next >
Encoding:
Text File  |  1995-06-07  |  5.0 KB  |  76 lines

  1.  
  2. 12 Technical Information
  3.  
  4. This chapter lists information about SimpleWave which is only of interest to programmers who want to write software to control SimpleWave, or for people who want to translate the user messages into their own language.
  5.  
  6. If you write your own application to take advantage of the features of SimpleWave by using the information below, please let me know. I am interested in what you write and perhaps your product can be distributed along with SimpleWave.
  7.  
  8.  
  9. Gestalt
  10.  
  11. When a Gestalt Selector equal to the creator code of SimpleWave is installed ('SWVE') this means SimpleWave is running or has run. In short: this computer's startup disk is maintained automatically. The response value conforms to the INITGestalt Standard (version 1.0) as proposed by Jeremy Roussak and Ren√© G.A. Ros. For more information on the INITGestalt email to: 'gestalt-selectors-list-request@bio.vu.nl' with the subject 'archive get INITGestalt*'.
  12.  
  13.   gestaltSimpleWaveTable = 'SWVE';
  14.  
  15.  
  16. Apple Events
  17.  
  18. SimpleWave supports the required Apple events class. Of these four the kAEOpenDocuments and kAEPrintDocuments event IDs have no effect, while kAEOpenApplication and kAEQuitApplication have.
  19. In addition it has its own Apple events class with seven event IDs:
  20.   kAESimpleWaveEventClass = 'SWVE';
  21.   kAESWVERecheck = 'chck';
  22.   kAESWVEAbortCheck = 'abor';
  23.   kAESWVEEmptyStartupDiskTrash = 'trsh';
  24.   kAESWVECheckSkipFolder = 'skip';
  25.   kAESWVEEmptySkipFolder = 'dels';
  26.   kAESWVETraceOn = 'tron';
  27.   kAESWVETraceOff = 'trof';
  28. None of these events require attributes or parameters.
  29.  
  30. ‚Ä¢ kAESWVERecheck
  31. Sending this Apple event causes SimpleWave to start checking the startup disk again. If the initial checking is still in progress the event will be saved and checking is restarted as soon as the initial check finishes. To avoid this you may want to send a kAESWVEAbortCheck event first. If a request to recheck is already queued you will get an errAEEventNotHandled error back. 
  32.  
  33. ‚Ä¢ kAESWVEAbortCheck
  34. This Apple event lets SimpleWave abort the current checking action. This may have a delay because SimpleWave will finish copying a file or finish other things it is working on.
  35. If a request to abort is already queued you will get an errAEEventNotHandled error back.
  36.  
  37. ‚Ä¢ kAESWVEEmptyStartupDiskTrash
  38. The kAESWVEEmptyStartupDiskTrash Apple Event causes all items from the startup disk, currently inside the Trash, to be deleted.
  39.  
  40. ‚Ä¢ kAESWVECheckSkipFolder
  41. This Apple event causes SimpleWave to recheck the Skip Folder to delete files and folders which are longer in the Skip Folder than the preset delay time.
  42.  
  43. ‚Ä¢ kAESWVEEmptySkipFolder
  44. The kAESWVEEmptySkipFolder Apple event deletes all files and folders in the Skip Folder when this event is received by SimpleWave.
  45.  
  46. ‚Ä¢ kAESWVETraceOn = 'tron';
  47. Using this Apple event turns the trace messages on. No error is returned if the trace messages are already on.
  48.  
  49. ‚Ä¢ kAESWVETraceOff = 'trof';
  50. And this Apple event turns the trace messages off. No error is returned if the trace messages are already off.
  51.  
  52.  
  53. Translating
  54.  
  55. When you want to translate the English user messages into another language you need to translate the STR# resource with ID 200 of the SimpleWave extension. Notify the author of SimpleWave before you start working on the translation. This is because your translated resource needs its own resource ID which is assigned for each language. Also, someone may already be working on the same language, or if a newer version of SimpleWave is about to be released you can translate that version instead.
  56.  
  57. Each text item can not be longer than 255 characters when displayed. When replacement markers are used in the text, which are filled in by SimpleWave (see below), the total length must include the maximum length of each replacement.
  58.  
  59. Inside the text several markers are included which are replaced by SimpleWave at runtime with the appropriate text and numbers. Below is a list of these markers, their meaning and the number of characters you need to reserve in the total text length of each message in which they're used.
  60.  
  61.    Code  Description                                       Length
  62.    ^ADM  Text with how to contact the administrator.       25
  63.    ^DLY  Skip Folder delay time in days.                   3
  64.    ^DES  Name of the startup disk (destination).           31
  65.    ^ERR  Text describing the error which occurred. If no
  66.          text is available a number is used.               63
  67.    ^FUL  Number of files not being copied because the
  68.          destination disk is full.                         3
  69.    ^MAC  Unique Macintosh model type number.               3
  70.    ^NAM  Name of the file or folder the message is about.  63
  71.    ^SCR  Script code of the current system software.       3
  72.  
  73. Some of these markers are not used with User Messages but only with Trace Messages. The Trace Messages shouldn't be translated.
  74. While translating the text, do not remove or add any of these markers. They are explained here to let you know by what text they are replaced, in order for you to translate and get the proper text displayed.
  75.  
  76.